import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
    {
      path:'/',
      redirect:'/main'
    },{
      path:'/main',
      name:'Main',
      component:()=> import (/* webpackChunkName:'main' */ '../views')
    },{
      path:'/comment',
      name:'Comment',
      component:()=>import(/* webpackChunkName:'comment' */ '../views/comment')
    }
]

const router = new VueRouter({
  routes
})

export default router
